//
// Created by wze-zero on 2024/9/8 008.
//
#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

int main() {
    double a, b, c;
    double delta;
    while (cin >> a >> b >> c) {
        if (a == 0) {
            cout << "Not quadratic equation" << endl;
        } else {
            delta = pow(b, 2) - 4 * a * c;
            if (delta == 0) {
                cout << fixed << setprecision(2) << "x1=x2=" << ((-b / (2 * a) == 0) ? 0 : -b / (2 * a)) << endl;
            } else if (delta > 0) {
                cout << fixed << setprecision(2) << "x1=" << (-b - sqrt(delta)) / (2 * a) << ";x2="
                     << (-b + sqrt(delta)) / (2 * a) << endl;
            } else {
                cout << fixed << setprecision(2) << "x1=" << -b / (2 * a) << '-' << sqrt(-delta) / (2 * a) << "i;x2="
                     << -b / (2 * a) << '+' << sqrt(-delta) / (2 * a) << 'i' << endl;
            }
        }
    }
    return 0;
}